package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 供应商投标书
 */
@Data
@TableName("t_tender")
public class TenderEntity implements Serializable {

    @TableId(value = "pk_tenderId", type = IdType.AUTO)
    private long tenderId;//id

    @TableField("t_tenderRef")
    private String biddId;//投标书编号

    @TableField("t_supplierRef")
    private long supplierId;//供应商编号

    @TableField("t_biddRef")
    private String inviteId;//招标书编号

    @TableField("t_title")
    private String title;//标书标题

    @TableField("t_info")
    private String info;//标书信息

    @TableField("t_date")
    private LocalDateTime date = LocalDateTime.now();//投标时间

    @TableField("t_supplierName")
    private String supplierName;//供应商名称

    @TableField("t_productInfo")
    private String productInfo;//投标商品信息

    @TableField("t_status")
    private int status = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过

    @TableField("t_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField("t_verifyName")
    private String verifyName;//审核员

    @TableField(exist = false)
    private BiddEntity biddEntity;//投标书对应的招标书

    @TableField(exist = false)
    private  SupplierEntity supplierEntity ;//投标书对应供应商
}
